import AsyncStorage from '@react-native-community/async-storage';

const type = `lag/time/diff`;

export const setTime = (time: number) => (
    AsyncStorage.setItem(type, `${time}`)
)

export const getTime = async () => {
    return ~~(await AsyncStorage.getItem(type) || ``)
}